Skip to content

Speed up raw native gathers and skip unused XOR reconstruction - #79

Merged
initial-d merged 3 commits into
mainfrom
codex/sparse-xor-reconstruction
Nov 15, 2026
Merged

initial-d merged 3 commits into
mainfrom
codex/sparse-xor-reconstruction

Conversation

@initial-d

Copy link
Copy Markdown
Owner

Uncompressed native tables previously sorted sparse requests into block groups even though no decoding or cache fill was needed. Read their validated contiguous physical payload directly, preserving original-ID forwarding, output order and distinct-block counters with query-sized scratch. Compressed tables keep grouped reads; previous-row XOR skips unused reconstructed tails unless filling a complete block cache.

On the same existing deduplicated, uncompressed AG News and DBpedia seed-3 tables (6.99M–34.05M rows), paired CPU gathers improved 1.57–1.65× with every output checked against original FP32 bytes. The eight existing Qwen XOR controls remained around 1.00×; those results are included. These are row-gather measurements, not complete application speedups or new capacity savings.

Validation: 379 local unit tests passed (149 optional skips), 43 remote native tests passed without skips (PyTorch and LZ4/Zstd/libdeflate), and local/remote ASan+UBSan passed. Existing formats and ABI remain compatible; the added XOR work getter distinguishes reconstruction from stream decoding. Reports, commands, hashes and compressed raw timings are in evidence/native_direct_gather_20261115/ (~310 KB); no models, tables or query arrays are added.

@initial-d
initial-d merged commit 58085eb into main Nov 15, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant